﻿using System;
using System.Collections;
using System.Collections.Generic;

using UnityEngine;
using Yoozoo.UI;

namespace com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx {
	[Serializable]
	public class AnimatorAdaptConfig {
		public RuntimeAnimatorController controller;

	}
	[DisallowMultipleComponent]
	public class AnimatorAdapt : AdaptBase<AnimatorAdaptConfig, Animator> {

        protected override void ApplyConfig(AnimatorAdaptConfig config) {
            base.ApplyConfig(config);
			mComponent.runtimeAnimatorController = config.controller;
		}

		protected override void CopyProperty(AnimatorAdaptConfig config)
		{
			base.CopyProperty(config);
			var animatorController =  mComponent.runtimeAnimatorController;
			config.controller = animatorController;
		}
	}
}
